package com.arpa.oms.domain.dto;

import com.arpa.wms.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * <p>
 * OMS采购明细
 * </p>
 *
 * @author LEO
 * @since 2020-10-22
 */
@Data
@ApiModel(value = "OmsPurchaseItem对象", description = "OMS采购明细")
public class PurchaseItemDto extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据标识" )
    private String code;

    @ApiModelProperty(value = "采购单号" )
 
    private String purchaseCode;

    @ApiModelProperty(value = "商品标识" )
    private String goodsCode;

    @ApiModelProperty(value = "商品编码")
    private String goodCode;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品条码")
    private String goodsBarCode;

    @ApiModelProperty(value = "商品规格")
    private String spec;

    @ApiModelProperty(value = "保质期（天）")
    private BigDecimal expirationQuantity;

    @ApiModelProperty(value = "基本单位标识")
    private String basicUnit;

    @ApiModelProperty(value = "基本单位名称")
    private String basicUnitName;

    @ApiModelProperty(value = "当前商品单位转基本单位件装量")
    private BigDecimal unitConvertQuantity;

    @ApiModelProperty(value = "采购单位标识")
    private String purchaseUnit;

    @ApiModelProperty(value = "采购单位名称")
    private String purchaseUnitName;

    @ApiModelProperty(value = "采购数量（采购单位）")
    private BigDecimal planQuantity;

    @ApiModelProperty(value = "采购数量（基本单位）")
    private BigDecimal planBasicQuantity;

    @ApiModelProperty(value = "实际采购数量（采购单位）")
    private BigDecimal actualQuantity;

    @ApiModelProperty(value = "实际采购数量（基本单位）")
    private BigDecimal actualBasicQuantity;

    @ApiModelProperty(value = "退货数量（采购单位）")
    private BigDecimal refundQuantity;

    @ApiModelProperty(value = "退货数量（基本单位）")
    private BigDecimal refundBasicQuantity;

    @ApiModelProperty(value = "入库数量（基本单位）")
    private BigDecimal storageQuantity;

    @ApiModelProperty(value = "可退数量（采购单位）")
    private BigDecimal refundableQuantity;

    @ApiModelProperty(value = "税率")
    private BigDecimal taxRate;


    @ApiModelProperty(value = "单价")
    private BigDecimal unitPrice;


    @ApiModelProperty(value = "含税单价")
    private BigDecimal taxUnitPrice;

    @ApiModelProperty(value = "金额")
    private BigDecimal amountMoney;

    @ApiModelProperty(value = "税额")
    private BigDecimal taxMoney;

    @ApiModelProperty(value = "价税合计")
    private BigDecimal totalMoney;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "第几页")
    private Integer pageNum=1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize=10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;
}
